var express = require('express');
var bannerRouter = express.Router();
const SQLQuery = require('../utils/query.js');


bannerRouter.post('/mini/getbanner', async function (req, res) {
    try {
        let queryObj = req.body;
        var sql = `SELECT * FROM wx_banner WHERE isDeleted = 0`;
        let result = await SQLQuery.query(sql)
        res.send(global.common.resJson(0, 'success', result))
    } catch (err) {
        res.send(err)
    }
})

module.exports = bannerRouter;